import {ISubListFactoryProps} from "../lib/SubListFactory";

export interface IReactMarkDownEditorProps extends ISubListFactoryProps{
    title : string
    content : string
}

export class ReactMarkDownEditor{
    private _title: string;
    private _content: string;
    private readonly _anthologyTitle:string;
    constructor(props:IReactMarkDownEditorProps){
        const {title, content, anthologyTitle} = props;
        this._title = title;
        this._content = content;
        this._anthologyTitle = anthologyTitle;
    }

    get title(): string {
        return this._title;
    }

    set title(value: string) {
        this._title = value;
    }

    get content(): string {
        return this._content;
    }

    set content(value: string) {
        this._content = value;
    }

    get anthologyTitle(): string {
        return this._anthologyTitle;
    }

}